package com.lidong.lowcode.model.manager;

import com.lidong.lowcode.model.model.intf.TableModel;
import com.lidong.toolkit.constant.LogConst;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 4/30/2022 1:36 PM
 */
@Configuration
public class TableModelManager {

    private static final Logger logger = LoggerFactory.getLogger(TableModelManager.class);

    public static List<TableModel> tableModel;

    @Autowired(required = false)
    private List<TableModel> tableModels;

    @PostConstruct
    public void init() {
        logger.info(LogConst.LOG_SUCCESS_PREFIX+"lowcode-model 数据建模表模型注册");
        tableModel = tableModels;
    }

}
